import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import Home from '@/components/Home.vue'
import NotFound from '@/components/404.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      //重定向url地址，将首页强制跳转至 http://localhost:8081/#/login
      path:'/',
      redirect:'/login',
      component: Login,
      name: '',
      // hidden: true
    },
    {
        path: '/login',
        component: Login,
        name: '',
        // hidden: true
    },
    {
        path: '/404',
        name: 'NotFound',
        component: NotFound
    },
    {
        path: '/home',
        name: 'Home',
        component: Home
    }
  ]
})
